const path = require('path');
// 端口
let port = 8080
let config ={
    // MYSQL配置
    DB_HOST:'localhost',
    DB_USER:'root',
    DB_PASS:'root',
    DB_NAME:'cpts',

    PORT:port,
    // 管理员密码后缀   加盐
    ADMIN_PREFIX:'_jiapeng',
    // 本机地址
    HTTP_ROOT:`http://localhost:${port}`,
    // 上传文件的路径
    UPLOAD_DIR:path.resolve(__dirname,'./static/upload')
}
module.exports = config;